#!/bin/bash

service=${1:-task}

image=img-lasr-$service-rsync-local
dockerfile=docker/Dockerfile-resync-$service
#dockerfile=docker/mixed/sichuantone_mix_offline/Dockerfile-resync-$service
container=container-$service-rsync

docker rm $container
docker build -t $image -f $dockerfile .
docker run -it --name=$container --env-file=resync/env.conf -v /data/resources/resource:/data/resources/resource $image
